#!/usr/bin/python
# -*- coding: utf-8 -*-

'''
Introduction to Programming in Java - An Interdisciplinary Approach

All book programs ported to Python by
Scott C. King (revisionx at {gee}ma1l <dot> c0m).


# Program 1.1.2 - Using a command line argument

Syntax:
python useargument.py Kate


Notes:
sys is a required import here in order to use command line arguments.
https://docs.python.org/2/tutorial/stdlib.html

sys.argv[1] == args[0]

In Python, sys.argv[0] is the name of the script (useargument.py).
https://docs.python.org/2/library/sys.html

'''

import sys


print 'Hi, ' + sys.argv[1] + '.  How are you?'

# Alternate using the built-in string class' format method
print 'Hi, {}.  How are you?'.format(sys.argv[1])
